//
//  HeadConfigureFile.swift
//  WeiBoAPP
//
//  Created by 张学飞 on 2019/1/14.
//  Copyright © 2019 zxf. All rights reserved.
//

import UIKit

import SVProgressHUD

let WB_APP_KEY = "561655988" //微博APPkey
let WB_APP_SECRE = "d4cbf8a3b7985d1b34c66202364b9945" //微博秘钥
let WB_APP_REDIRET_URL = "http://baidu.com" //回调地址
let WB_APP_REDIRET_Failure_URL = "https://www.baidu.com" //取消授权回调地址



let WB_LoginRegist_NNotification = "WB_LoginRegist_Notifice"
let WB_LoginRegistSuccess_Notification = "WB_LoginRegistSuccess_Notifice"

// MARK:  - 屏幕UI

let WB_SCREED_WIDTH:CGFloat = UIScreen.main.bounds.size.width
let WB_SCREED_HEIGHT:CGFloat = UIScreen.main.bounds.size.height

// MARK: - 设备信息
 
/// 当前app信息
let WB_GetAppInfo = Bundle.main.infoDictionary
/// 当前app版本号
let WB_GetAppCurrentVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString")
/// 获取设备系统号
let WB_GetSystemVersion = UIDevice.current.systemVersion
 
/// iPhone设备
let WB_IsIPhone = (UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.phone ? true : false)
/// iPad设备
let WB_IsIPad = (UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad ? true : false)

/// 全屏高度，含状态栏高度
//[[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0

var WB_IPHONE_X:Bool = true
//if #available(iOS 11.0, *) {
/// tabbar切换视图控制器高度
let kTabbarHeight = 49.0
/// 搜索视图高度
let kSearchBarHeight = 45.0
/// 状态栏高度
let kStatusBarHeight = (WB_IPHONE_X ? (20.0 + 24) : 20.0)
/// 导航栏高度
 let kNavigationBarHeight =  44.0

let kNavigationHeight  = (kNavigationBarHeight + kStatusBarHeight)
//static app_key
//App_Secre d4cbf8a3b7985d1b34c66202364b9945
